import request from '../utils/request';
//客户管理相关接口文档
const api = {
  //分页获得匹配的客户数据列表
  QueryPageCustomerList(data?: any) {
    return request({
      url: '/api/OrderBusniess/QueryPageCustomerList',
      method: 'post',
      data,
    });
  },
  //创建新客户
  CreateNewCustomer(data?: any) {
    return request({
      url: '/api/OrderBusniess/CreateNewCustomer',
      method: 'post',
      data,
    });
  },
  //修改客户基本信息
  UpdateCustomerBaseData(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateCustomerBaseData',
      method: 'post',
      data,
    });
  },
  //修改客户联系人信息
  UpdateCustomerContactData(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateCustomerContactData',
      method: 'post',
      data,
    });
  },
  //修改客户开票信息
  UpdateCustomerInvoiceData(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateCustomerInvoiceData',
      method: 'post',
      data,
    });
  },
  //新增客户收货地址
  AddReceiveAddress(data?: any) {
    return request({
      url: '/api/OrderBusniess/AddReceiveAddress',
      method: 'post',
      data,
    });
  },
  //修改客户收货地址
  UpdateReceiveAddress(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateReceiveAddress',
      method: 'post',
      data,
    });
  },
  //设置默认客户收货地址
  SetDefaultReceiveAddress(data?: any) {
    return request({
      url: '/api/OrderBusniess/SetDefaultReceiveAddress',
      method: 'post',
      data,
    });
  },
  //获得客户收货地址列表
  QueryCustomersReceiveAddresses(data?: any) {
    return request({
      url: '/api/OrderBusniess/QueryCustomersReceiveAddresses',
      method: 'post',
      data,
    });
  },
  //删除客户收货地址
  DeleteReceiveAddress(data?: any) {
    return request({
      url: '/api/OrderBusniess/DeleteReceiveAddress',
      method: 'post',
      data,
    });
  },
  //获取客户详细数据
  QueryCustomerDetail(data?: any) {
    return request({
      url: '/api/OrderBusniess/QueryCustomerDetail',
      method: 'post',
      data,
    });
  },
  //删除客户
  DeleteCustomer(data?: any) {
    return request({
      url: '/api/OrderBusniess/DeleteCustomer',
      method: 'post',
      data,
    });
  },
  //禁用/启用客户
  DisableorEnableCustomer(data?: any) {
    return request({
      url: '/api/OrderBusniess/DisableorEnableCustomer',
      method: 'post',
      data,
    });
  },
  //获取所有产品简要信息列表
  GetProductBriefList(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetProductBriefList',
      method: 'post',
      data,
    });
  },

  //分页获取客户资质数据列表
  PageCustomersCertifications(data?: any) {
    return request({
      url: '/api/OrderBusniess/PageCustomersCertifications',
      method: 'post',
      data,
    });
  },
  //新增客户资质
  UploadCustomerCertification(data?: any) {
    return request({
      url: '/api/OrderBusniess/UploadCustomerCertification',
      method: 'post',
      data,
    });
  },
  //修改客户资质
  UpdateCustomerCertification(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateCustomerCertification',
      method: 'post',
      data,
    });
  },
  //删除客户资质
  DeleteCustomerCertification(data?: any) {
    return request({
      url: '/api/OrderBusniess/DeleteCustomerCertification',
      method: 'post',
      data,
    });
  },
  //预览客户资质文件
  PreviewCertificationFile(data?: any) {
    return request({
      url: '/api/OrderBusniess/PreviewCertificationFile',
      method: 'post',
      data,
    });
  },
  //下载客户资质文件
  DownLoadCertificationFile(data?: any) {
    return request({
      url: '/api/OrderBusniess/DownLoadCertificationFile',
      method: 'post',
      data,
    });
  },
  //分页获取客户资料数据列表
  PageCustomerInformations(data?: any) {
    return request({
      url: '/api/OrderBusniess/PageCustomerInformations',
      method: 'post',
      data,
    });
  },
  //预览客户资料文件
  QueryInformationTypeDataList(data?: any) {
    return request({
      url: '/api/OrderBusniess/QueryInformationTypeDataList',
      method: 'post',
      data,
    });
  },
  //预览客户资料文件
  PreviewInformationFile(data?: any) {
    return request({
      url: '/api/OrderBusniess/PreviewInformationFile',
      method: 'post',
      data,
    });
  },
  //预览客户资料文件
  GetCustomerInformationDetail(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetCustomerInformationDetail',
      method: 'post',
      data,
    });
  },
  //新增客户资料（上传）
  UploadCustomerInformation(data?: any) {
    return request({
      url: '/api/OrderBusniess/UploadCustomerInformation',
      method: 'post',
      data,
    });
  },
  //修改客户资料
  UpdateCustomerInformation(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateCustomerInformation',
      method: 'post',
      data,
    });
  },
  //下载客户资料文件
  DownLoadInformationFile(data?: any) {
    return request({
      url: '/api/OrderBusniess/DownLoadInformationFile',
      method: 'post',
      data,
    });
  },
  //删除客户资料
  DeleteCustomerInformation(data?: any) {
    return request({
      url: '/api/OrderBusniess/DeleteCustomerInformation',
      method: 'post',
      data,
    });
  },
  //分页获取匹配的客户合同数据列表
  PageCustomersContracts(data?: any) {
    return request({
      url: '/api/OrderBusniess/PageCustomersContracts',
      method: 'post',
      data,
    });
  },
  //新增客户合同
  UploadCustomerContract(data?: any) {
    return request({
      url: '/api/OrderBusniess/UploadCustomerContract',
      method: 'post',
      data,
    });
  },
  //修改客户合同
  GetCustomerContractDetail(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetCustomerContractDetail',
      method: 'post',
      data,
    });
  },
  //修改客户合同
  UpdateCustomerContract(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateCustomerContract',
      method: 'post',
      data,
    });
  },
  //删除客户合同
  DeleteCustomerContract(data?: any) {
    return request({
      url: '/api/OrderBusniess/DeleteCustomerContract',
      method: 'post',
      data,
    });
  },
  //预览客户合同文件
  PreviewContractFile(data?: any) {
    return request({
      url: '/api/OrderBusniess/PreviewContractFile',
      method: 'post',
      data,
    });
  },
  //下载客户合同文件
  DownLoadContractFile(data?: any) {
    return request({
      url: '/api/OrderBusniess/DownLoadContractFile',
      method: 'post',
      data,
    });
  },
  //分页获取订单分组列表
  GetPageSaleOrderGroup(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetPageSaleOrderGroup',
      method: 'post',
      data,
    });
  },
  //下载订单列表
  DownloadSaleOrderExportViewList2(data?: any) {
    return request({
      url: '/api/OrderBusniess/DownloadSaleOrderExportViewList2',
      method: 'post',
      data,
      responseType: 'blob',
    });
  },
  //自动开单
  AutoQuickOrderingByExcel(data?: any) {
    return request({
      url: '/api/OrderBusniess/AutoQuickOrderingByExcel',
      method: 'post',
      data,
    });
  },
  //修改订单状态
  UpdateSaleOrderGroupState(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateSaleOrderGroupState',
      method: 'post',
      data,
    });
  },
  //根据SaleOrderCode修改订单发货状态
  UpdateSaleOrderDeliverState(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateSaleOrderDeliverState',
      method: 'post',
      data,
    });
  },
  //获取订单详情接口
  GetSaleOrderGroupDetail(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetSaleOrderGroupDetail',
      method: 'post',
      data,
    });
  },
  //编辑订单作废状态
  UpdateSaleOrderIsDisabled(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateSaleOrderIsDisabled',
      method: 'post',
      data,
    });
  },
  //新建订单
  AddSaleOrderGroup(data?: any) {
    return request({
      url: '/api/OrderBusniess/AddSaleOrderGroup',
      method: 'post',
      data,
    });
  },
  //编辑订单分组详情
  UpdateSaleOrderGroup(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateSaleOrderGroup',
      method: 'post',
      data,
    });
  },
  //批量导入成品型号信息
  ImportProductSpecification(data?: any) {
    return request({
      url: '/api/OrderBusniess/ImportProductSpecification',
      method: 'post',
      data,
    });
  },
  //保存成品型号信息
  SaveProductSpecification(data?: any) {
    return request({
      url: '/api/OrderBusniess/SaveProductSpecification',
      method: 'post',
      data,
    });
  },
  //分页获取匹配的其它费用明细
  GetMatchPageSaleOrderFeeDetails(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetMatchPageSaleOrderFeeDetails',
      method: 'post',
      data,
    });
  },
  //创建其它费用明细
  AddSaleOrderFeeDetail(data?: any) {
    return request({
      url: '/api/OrderBusniess/AddSaleOrderFeeDetail',
      method: 'post',
      data,
    });
  },
  //修改其它费用明细
  UpdateSaleOrderFeeDetail(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateSaleOrderFeeDetail',
      method: 'post',
      data,
    });
  },
  //删除其它费用明细
  DeleteSaleOrderFeeDetail(data?: any) {
    return request({
      url: '/api/OrderBusniess/DeleteSaleOrderFeeDetail',
      method: 'post',
      data,
    });
  },
  //分页获取产品管理列表
  GetPageProductList(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetPageProductList',
      method: 'post',
      data,
    });
  },
  //修改产品状态
  UpdateProductState(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateProductState',
      method: 'post',
      data,
    });
  },
  //根据产品编号获取产品详情
  GetSingleProductByProductCode(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetSingleProductByProductCode',
      method: 'post',
      data,
    });
  },
  //新增产品
  AddProduct(data?: any) {
    return request({
      url: '/api/OrderBusniess/AddProduct',
      method: 'post',
      data,
    });
  },
  //修改产品基础信息
  UpdateProductBaseData(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateProductBaseData',
      method: 'post',
      data,
    });
  },
  //修改产品信息
  UpdateProductInfoData(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateProductInfoData',
      method: 'post',
      data,
    });
  },
  //修改阶梯价信息
  UpdateProductSteppedPriceInfo(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateProductSteppedPriceInfo',
      method: 'post',
      data,
    });
  },
  //修改产品生产信息
  UpdateProductPackage(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateProductPackage',
      method: 'post',
      data,
    });
  },
  //保存标签信息
  UpdateProductTag(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateProductTag',
      method: 'post',
      data,
    });
  },
  //修改印刷颜色信息
  UpdateProductPrintingColor(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateProductPrintingColor',
      method: 'post',
      data,
    });
  },
  //保存彩稿文件
  SaveColorDratfFile(data?: any) {
    return request({
      url: '/api/OrderBusniess/SaveColorDratfFile',
      method: 'post',
      data,
    });
  },
  //保存彩稿文件
  DeleteProductColorDratfFile(data?: any) {
    return request({
      url: '/api/OrderBusniess/DeleteProductColorDratfFile',
      method: 'post',
      data,
    });
  },
  //修改产品生产信息
  UpdateProductProductionData(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateProductProductionData',
      method: 'post',
      data,
    });
  },
  //修改生产工艺信息
  UpdateProductTechnique(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateProductTechnique',
      method: 'post',
      data,
    });
  },
  //修改生产材料信息
  UpdateProductMaterial(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateProductMaterial',
      method: 'post',
      data,
    });
  },

  // 分页获取匹配的彩稿审核通过的销售订单数据
  GetPageSaleOrdersByPassingColorDraft(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetPageSaleOrdersByPassingColorDraft',
      method: 'post',
      data,
    });
  },

  //订单-根据订单编码获取订单的产品型号数据
  GetOrderProductSpecificationBySaleOrderCode(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetOrderProductSpecificationBySaleOrderCode',
      method: 'post',
      data,
    });
  },
  //订单-根据指定条件查询获取发货明细
  GetMatchPageProductMapQuickOrdering(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetMatchPageProductMapQuickOrdering',
      method: 'post',
      data,
    });
  },
  //订单-创建规则
  AddProductMapQuickOrdering(data?: any) {
    return request({
      url: '/api/OrderBusniess/AddProductMapQuickOrdering',
      method: 'post',
      data,
    });
  },
  //订单-修改规则
  UpdateProductMapQuickOrdering(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateProductMapQuickOrdering',
      method: 'post',
      data,
    });
  },
  //订单-启用规则
  EnableProductMapQuickOrdering(data?: any) {
    return request({
      url: '/api/OrderBusniess/EnableProductMapQuickOrdering',
      method: 'post',
      data,
    });
  },
  //订单-禁用规则
  DisableProductMapQuickOrdering(data?: any) {
    return request({
      url: '/api/OrderBusniess/DisableProductMapQuickOrdering',
      method: 'post',
      data,
    });
  },
  //获取客户标签数据列表
  QueryCustomersTags(data?: any) {
    return request({
      url: '/api/OrderBusniess/QueryCustomersTags',
      method: 'post',
      data,
    });
  },
  //新增客户标签
  AddCustomerTag(data?: any) {
    return request({
      url: '/api/OrderBusniess/AddCustomerTag',
      method: 'post',
      data,
    });
  },
  //新增客户标签
  DeleteCustomerTag(data?: any) {
    return request({
      url: '/api/OrderBusniess/DeleteCustomerTag',
      method: 'post',
      data,
    });
  },
  //获取所有新版的产品（新建改版产品时使用）
  GetMatchProductViewList(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetMatchProductViewList',
      method: 'post',
      data,
    });
  },
  //删除未使用的产品
  DeleteUnusedProductByCode(data?: any) {
    return request({
      url: '/api/OrderBusniess/DeleteUnusedProductByCode',
      method: 'post',
      data,
    });
  },
  //获取生产工艺资料卡详情
  GetProductTechniqueCardDetails(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetProductTechniqueCardDetails',
      method: 'post',
      data,
    });
  },
  //修改生产工艺资料卡信息
  UpdateProductTechniqueCard(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateProductTechniqueCard',
      method: 'post',
      data,
    });
  },
  //修改产品工艺资料卡锁定状态
  UpdateProductTechniqueCardIsLocked(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateProductTechniqueCardIsLocked',
      method: 'post',
      data,
    });
  },

  //完成数据生产单
  GetCanOpenDataProduceBillsSaleOrderList(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetCanOpenDataProduceBillsSaleOrderList',
      method: 'post',
      data,
    });
  },
  //获取待出库发货订单
  GetMatchSaleOrderDeliveryList(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetMatchSaleOrderDeliveryList',
      method: 'post',
      data,
    });
  },
  //获取发货订单列表
  GetMatchPageSaleOrderDeliveryList(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetMatchPageSaleOrderDeliveryList',
      method: 'post',
      data,
    });
  },
  //发货单-批量创建发货单
  CreateSaleOrderDeliveryBatch(data?: any) {
    return request({
      url: '/api/OrderBusniess/CreateSaleOrderDeliveryBatch',
      method: 'post',
      data,
    });
  },
  //发货单-创建发货单
  CreateSaleOrderDelivery(data?: any) {
    return request({
      url: '/api/OrderBusniess/CreateSaleOrderDelivery',
      method: 'post',
      data,
    });
  },
  //发货单-修改发货单
  UpdateSaleOrderDelivery(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateSaleOrderDelivery',
      method: 'post',
      data,
    });
  },
  //发货单-删除发货单
  DeleteSaleOrderDelivery(data?: any) {
    return request({
      url: '/api/OrderBusniess/DeleteSaleOrderDelivery',
      method: 'post',
      data,
    });
  },
  //发货单-撤回发货单
  RevokeSaleOrderDelivery(data?: any) {
    return request({
      url: '/api/OrderBusniess/RevokeSaleOrderDelivery',
      method: 'post',
      data,
    });
  },
  //发货单-确认发货单
  SureSaleOrderDelivery(data?: any) {
    return request({
      url: '/api/OrderBusniess/SureSaleOrderDelivery',
      method: 'post',
      data,
    });
  },
  //发货单-作废发货单
  CancelSaleOrderDelivery(data?: any) {
    return request({
      url: '/api/OrderBusniess/CancelSaleOrderDelivery',
      method: 'post',
      data,
    });
  },
  //根据发货单号获取发货单明细数据
  GetFinishedProductDeliveryDetail(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetFinishedProductDeliveryDetail',
      method: 'post',
      data,
    });
  },
  //获取发货单详情
  GetSaleOrderDeliveryDetail(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetSaleOrderDeliveryDetail',
      method: 'post',
      data,
    });
  },
  //根据客户编码获取发货明细基础数据（半年内的）
  GetSaleOrderDeliveryMxByCustomerCode(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetSaleOrderDeliveryMxByCustomerCode',
      method: 'post',
      data,
    });
  },
  //根据客户Code获取寄方信息
  GetSenderInformation(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetSenderInformation',
      method: 'post',
      data,
    });
  },
  //更新寄方信息
  UpdateSenderInformation(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateSenderInformation',
      method: 'post',
      data,
    });
  },
  //获取客户所有收货地址数据
  GetMatchCustomerReceiveAddresss(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetMatchCustomerReceiveAddresss',
      method: 'post',
      data,
    });
  },
  //自动保存对账单（有code则更新、无code则新建）
  AutoSaveSaleOrderStatement(data?: any) {
    return request({
      url: '/api/OrderBusniess/AutoSaveSaleOrderStatement',
      method: 'post',
      data,
    });
  },
  //分页列表查询对账单
  GetMatchPageSaleOrderStatements(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetMatchPageSaleOrderStatements',
      method: 'post',
      data,
    });
  },
  //查询对账单详情-根据对账单唯一编码
  GetMatchSaleOrderStatementDetail(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetMatchSaleOrderStatementDetail',
      method: 'post',
      data,
    });
  },
  //删除对账单-根据对账单唯一编码
  DeleteSaleOrderStatement(data?: any) {
    return request({
      url: '/api/OrderBusniess/DeleteSaleOrderStatement',
      method: 'post',
      data,
    });
  },
  //修改对账单状态
  UpdateSaleOrderStatementState(data?: any) {
    return request({
      url: '/api/OrderBusniess/UpdateSaleOrderStatementState',
      method: 'post',
      data,
    });
  },
  //根据指定条件查询获取发货明细
  GetSaleOrderDeliveryMxView(data?: any) {
    return request({
      url: '/api/OrderBusniess/GetSaleOrderDeliveryMxView',
      method: 'post',
      data,
    });
  },
};
//业务开单接口
export default api;
